
var fs = require('fs');
var express = require('express');
var app = express();

app.use(express.static(__dirname + '/public'));

app.get('/', function(req, res){
	fs.readFile(__dirname + '/public/default.htm','utf-8',function(err,data){  
	    if(!err){
	        res.send(data);  
	    }  
	});
});

var port = process.env.PORT || 8080;
app.listen(port);

console.log('Listening on port ' + port);